<%@include  file="/WEB-INF/header.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<div class="container">
<div class="row">

<c:forEach items="${plist}" var="pl">
  <div class="col-sm-6 col-md-3">
  <a href="${pageContext.request.contextPath}/photoview.action?mediaid=${pl.mediaid}&medianum=${fn:length(plist)}">
    <div class="thumbnail">
      <img src="${pageContext.request.contextPath}${pl.mediaurl}" alt="缩略图" class="img-thumbnail">
      <div class="caption">
                <h3>${pl.mediatitle}</h3>
                <p>${pl.description}</p>
      </div>
    </div>
    </a>
  </div>
</c:forEach>  

  </div>   
</div>

 <%@include  file="/WEB-INF/footer.jsp"%>